﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YueRu.Common
{
    public class RandomHelper
    {
        public static string GetVerCode()
        {
            var rd = new Random();
            string verificationCode = "";
            while (verificationCode.Length < 10)
            {
                int temp = rd.Next(0, 10);
                if (!verificationCode.Contains(temp + ""))
                {
                    verificationCode += temp;
                }
            }
            return verificationCode;

        }
    }
}
